package com.example.client.http;

import com.example.factory.DefaultClientFactory;
import com.example.node.Node;
import com.example.transport.message.Request;
import com.example.transport.message.Response;

public class DefaultHttpClientFactory extends DefaultClientFactory {

    private String ip;

    private int port;

    private Node client;

    @Override
    public Node getNode() {
        if (this.client == null) {
            this.client = new DefaultHttpClient(ip, port);
        }
        return this.client;
    }

    @Override
    public void asyncSend(Request request) throws Exception {

    }

    @Override
    public Response syncSend(Request request) throws Exception {
        return null;
    }
}
